<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;



/**
 * Gap控制器
 */
class CustomerService extends ApiBase
{


    /**
     * 聊天记录
     */

    public function index()
    {

        return $this->apiReturn($this->logicCustomerService->chat_log($this->param));
    }


    /**
     * 检测客服是否在线
     */

    public function check_customer()
    {
        return $this->apiReturn($this->logicCustomerService->check_customer($this->param));
    }


    /**
     * 绑定用户id
     */

    public function blind_user()
    {
        return $this->apiReturn($this->logicCustomerService->blind_user($this->param));
    }


    /**
     * 绑定用户id
     */

    public function kefu_blind_user()
    {
        return $this->apiReturn($this->logicCustomerService->kefu_blind_user($this->param));
    }


    /**
     * 发送消息
     */

    public function chat_message()
    {
        return $this->apiReturn($this->logicCustomerService->chat_message($this->param));
    }
    /**
     * 客服发送消息
     */

    public function customer_message()
    {
        return $this->apiReturn($this->logicCustomerService->customer_message($this->param));
    }


    /**
     * 客服与用户对话列表
     */

    public function chat_user()
    {
        return $this->apiReturn($this->logicCustomerService->chat_user($this->param));
    }

    /**
     * 客服与用户对话记录
     */

    public function customer_chat_log()
    {
        return $this->apiReturn($this->logicCustomerService->customer_chat_log($this->param));
    }
    /**
     * 客服问候
     */

    public function customer_greet()
    {
        return $this->apiReturn($this->logicCustomerService->customer_greet($this->param));
    }

    /**
     * 加入群组
     */

    public function join_group()
    {
        return $this->apiReturn($this->logicCustomerService->join_group($this->param));
    }

}
